/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package earthdawnnet.events.server;

import earthdawnnet.server.IEarthdawnServer;

/**
 *
 * @author Andreas Franek
 */
public class WhisperEvent extends ServerEvent
{
    private String line;
    private int receiver;
    public WhisperEvent(int receiver, String line)
    {
        this.receiver = receiver;
        this.line = line;
    }

    @Override
    public String getEventName()
    {
        return "WhisperEvent";
    }

    @Override
    public void apply(IEarthdawnServer eds)
    {
        eds.whisper(getSender(), receiver, line);
    }
    
}
